<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content " id="app">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="notifyForm">
                        <input id="id" name="id" th:value="${notify.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">类型：</label>
                            <div class="col-sm-8">
                                <select data-placeholder="--选择类别--" name="type" id="type"
                                        title="" class="form-control chosen-select" tabindex="2">
                                    <option value="">-- 选择类别 --</option>
                                    <option th:each="sysNotifyType : ${sysNotifyTypes}"
                                            th:value="${sysNotifyType.id}"
                                            th:text="${sysNotifyType.name}"
                                            th:selected="${sysNotifyType.remark}">
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">标题：</label>
                            <div class="col-sm-8">
                                <input id="title" name="title" title="" th:value="${notify.title}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">内容：</label>
                            <div class="col-sm-8">
                                <textarea id="content" name="content" title="" th:text="${notify.content}"
                                          class="form-control"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">已经发布：</label>
                            <div class="switch  col-sm-1">
                                <div class="onoffswitch">
                                    <input id="status" name="status" th:checked="${notify.status}" type="checkbox"
                                           th:value="1" class="onoffswitch-checkbox">
                                    <label class="onoffswitch-label" for="status">
                                        <span class="onoffswitch-inner"></span>
                                        <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">发送邮件：</label>
                            <div class="switch  col-sm-1">
                                <div class="onoffswitch">
                                    <input id="sendEmail" name="sendEmail" th:checked="${notify.sendEmail}"
                                           type="checkbox"
                                           th:value="1" class="onoffswitch-checkbox">
                                    <label class="onoffswitch-label" for="sendEmail">
                                        <span class="onoffswitch-inner"></span>
                                        <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">备注信息：</label>
                            <div class="col-sm-8">
                                <input id="remark" name="remark" th:value="${notify.remark}"
                                       title="" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script th:src="@{/appjs/sys/notify/edit.js}">
</script>
</body>
</html>
